MapIndexed
MapIndexed[f,expr] applies f to the elements of expr, giving the part specification of each element as a second argument to f.
MapIndexed[f,expr,levelspec] applies f to all parts of expr on levels specified by levelspec.
MapIndexed[f] represents an operator form of MapIndexed that can be applied to an expression.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.